﻿using System;
using System.Collections.Generic;
using System.Text;
using Gestion.Domain.Entities;

namespace Gestion.Domain.Base
{
    [Serializable]
    public abstract class BaseRiesgoEntity : Entities.DomainEntity<Int64?>
    {

        #region properties

        public virtual String Nombre
        {
            get { return _nombre; }
            set { _nombre = value; }
        }

        public virtual String Descripcion
        {
            get { return _descripcion; }
            set { _descripcion = value; }
        }

       

        public virtual IList<DetalleRiesgoEntity> DetalleRiesgoCollection
        {
            get { return _detalleRiesgoCollection; }
            set { _detalleRiesgoCollection = value; }
        }

        #endregion

        #region members

        private String _nombre = "";
        private String _descripcion = "";
        
        // Relationships in which this entity acts as a parent
        // NHibernate.Generics members must be named in the following format:  _camelCase
        private IList<DetalleRiesgoEntity> _detalleRiesgoCollection = new List<DetalleRiesgoEntity>();


        // Relationships in which this entity acts as a child
        // NHibernate.Generics members must be named in the following format:  _camelCase
           

        #endregion

    }
}